<template>
	<view class="home">
		首页
		<tabBar selectedIndex = 0></tabBar>
		<button @click="logout">退出登录</button>
	</view>
</template>

<script setup>
import { onShow } from '@dcloudio/uni-app'
onShow(()=>{
	uni.hideTabBar({
		animation:false
	})
})

const logout = ()=>{
	uni.removeStorageSync('identify')
	uni.reLaunch({
		url:'/pages/login/login'
	})
}
</script>

<style lang="scss" scoped>
.home{
	text-align: center;
	color: #00BAB2;
	margin-top: 20rpx;
	button{
		margin: 10rpx 0;
	}
}
</style>